//		/\ \/\ \  /'__`\  /\`'__\/',__\ 
//		\ \ \_/ |/\ \_\.\_\ \ \//\__, `\
//		 \ \___/ \ \__/.\_\\ \_\\/\____/
//		  \/__/   \/__/\/_/ \/_/ \/___/ 


		//RENDERER
		private var renderer:QuadrantRenderEngine;

		//COLLADA
		[Embed( source = "assets/VREDENBURG33.DAE", mimeType = "application/octet-stream" )]
		private var daeClass:Class;
		private var dae		:DAE;
		private var fps		:FlexFPS;

		//AANTALLEN
		private var aantalAssets	:Number = 4;
		private var aantalSchatten	:Number = 16;
		private var aantalFilmpjes	:Number = 11;
		private var aantalPlaatjes	:Number = 11;
		private var aantalObjecten	:Number = 0;

		//ZWITSER
		[Bindable]private var zwitsPointer	:String 	= new String( "vredenburg" );
		[Bindable]private var upDownString	:String 	= new String( "down" );
		
		//VIDEO
		[Bindable]
		private var video1:String = "http://vredenburg.robert-hein.nl/video/montage Trijn 001.mov.FLV";
		[Bindable]
		private var video2:String = "http://vredenburg.robert-hein.nl/video/Montage KarelV 001.mov.FLV";

		//PLANES
		[Bindable][Embed( source = "assets/wimpel.png" )]
		private var wimpelClass			:Class;
		[Bindable][Embed( source = "assets/onderTrijn.png" )]
		private var trijnOnderClass		:Class;
		[Bindable][Embed( source = "assets/bovenTrijn.png" )]
		private var trijnBovenClass		:Class;
		[Bindable][Embed( source = "assets/onderVrdnbrg.png" )]
		private var vrdnbrgOnderClass	:Class;
		[Bindable][Embed( source = "assets/bovenVrdnbrg.png" )]
		private var vrdnbrgBovenClass	:Class;
		[Bindable][Embed( source = "assets/onderDom.png" )]
		private var domOnderClass		:Class;
		[Bindable][Embed( source = "assets/rainbow.png" )]
		private var rainbowClass		:Class;
		[Bindable][Embed( source = "assets/achtergrondVrdnbrg.png" )]
		private var kasteelPlaneClass	:Class;
		[Bindable][Embed( source = "assets/achtergrondDom.png" )]
		private var domPlaneClass		:Class;
		[Bindable][Embed( source = "assets/achtergrondTrijn.png" )]
		private var trijnHuisPlaneClass	:Class;
		//VOORRGRONDEN
		[Bindable][Embed( source = "assets/voorgrond1.gif" )]
		private var voorgrond1Class	:Class;
		[Bindable][Embed( source = "assets/voorgrond2.gif" )]
		private var voorgrond2Class	:Class;
		[Bindable][Embed( source = "assets/voorgrond3.gif" )]
		private var voorgrond3Class	:Class;
		//ACHTERGRONDEN
		[Bindable][Embed( source = "assets/achtergrond1.jpg" )]
		private var achtergrond1Class	:Class;
		[Bindable][Embed( source = "assets/achtergrond2.jpg" )]
		private var achtergrond2Class	:Class;
		[Bindable][Embed( source = "assets/achtergrond3.jpg" )]
		private var achtergrond3Class	:Class;

		//VIEWPORT FILTER
		private var grijsMatrix:Array = 
		[ 
			.33, .33, .33, 0, 0,
			.33, .33, .33, 0, 0,
			.33, .33, .33, 0, 0,
			.33, .33, .33, 1, 0 
		];
		private var grijsMatrixFilter:ColorMatrixFilter = new ColorMatrixFilter( grijsMatrix );
		private var outline:GlowFilter;

		//PLANES
		[Embed( source = "assets/karelPlane.gif" )]
		private var karelPlaneClass:Class;
		private var karelPlane:Plane;
		[Embed( source = "assets/trijnPlane.gif" )]
		private var trijnPlaneClass:Class;
		private var trijnPlane:Plane;
		private var helper	:Plane;

		//NUMBERS
		[Bindable]private var screenWidth	:Number;
		[Bindable]private var screenScale	:Number;
		[Bindable]private var timer			:Number	= 60;
		private var last_X					:Number	= 0;
		private var rotSpeedX				:Number	= 0;
		[Bindable]private var angle			:Number	= 0;
		[Bindable] private var absAngle		:Number = 0;
		private var prev_angle				:Number	= 0;
		private var boundsBuffer			:Number	= 0;
		private var radius					:Number	= 2300;
		private var vrdnbrgOffset			:Object = { x: 0, z: 0, r:2300 };
		private var domOffset				:Object = { x: -3500, z: -6100, r:1600 };
		private var trijnOffset				:Object = { x: 3600, z: -5100, r:1900 };
		private var dezeLokatie				:Object = { x: 0, y: 0, z:0 };
		
		//CAMERA
		private var isDragging		:Boolean	= false;
		private var camPos			:Number3D 	= new Number3D;
		private var bounds			:Object		= { top: 500, bottom: 0 };

		//3D DISPLAY OBJECTS
		private var hoverModel		:DisplayObject3D;
		private var ditObject		:DisplayObject3D;
		private var clickedModel	:DisplayObject3D;

		//MODEL ARRAYS
		private var daeModel		:Array = new Array( aantalAssets );
		private var deSchatten		:Array = new Array( aantalSchatten );
		private var deFilmpjes		:Array = new Array( aantalFilmpjes );
		private var dePlaatjes		:Array = new Array( aantalPlaatjes );
		private var deObjecten		:Array = new Array( aantalSchatten );

		//TEXTURES
		[Embed( source = "assets/huisTrijn01.jpg" )]
		private var huisTrijnClass:Class;
		[Embed( source = "assets/newnewDomToren.gif" )]
		private var domHighClass:Class;
		[Embed( source = "assets/newnewDomKerk.gif" )]
		private var domKerkClass:Class;
		[Embed( source = "assets/vredenburg.jpg" )]
		private var vredenburgHighClass:Class;
		[Embed( source = "assets/chestSmall.png" )]
		private var schatClass:Class;
		[Embed( source = "assets/tvSmall.png" )]
		private var tvClass:Class;
		[Embed( source = "assets/tvSmallOn.png" )]
		private var tvOnClass:Class;
		[Embed( source = "assets/omroeper.png" )]
		private var omroeperClass:Class;

		//CURSORS
		[Embed( source = "assets/curHandOpen.png" )]
		public var curHandOpen:Class;
		[Embed( source = "assets/curHandDrag.png" )]
		public var curHandDrag:Class;
		[Embed( source = "assets/curHandPoint.png" )]
		public var curHandPoint:Class;
		[Embed( source = "assets/curVrdnbrg.png" )]
		public var curVrdnbrg:Class;
		[Embed( source = "assets/curDomkerk.png" )]
		public var curDomkerk:Class;
		[Embed( source = "assets/curTrijn.png" )]
		public var curTrijn:Class;
		
		//ROLLOVER
		private var rolloverColor:ColorTransform;

		
		
		
		